package org.example.jiaxiao.service.impl;

import org.example.jiaxiao.entity.Exam;
import org.example.jiaxiao.mapper.ExamMapper;
import org.example.jiaxiao.service.ExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ExamServiceImpl implements ExamService {

    @Autowired
    private ExamMapper examMapper;

    @Override
    public List<Exam> getAllExams(Integer studentId) {
        return examMapper.findAll(studentId);
    }
}
